import request from '@/utils/request'

export const policiesCreateService = ({ name, content }) => {
  return request.post('/op/policies', {name, content})
}

export const policiesDeleteService = (id) => {
  return request.delete(`/op/policies/${id}`)
}

export const policiesPutService = (id, content) => {
  return request.put('/op/policies', {id, content})
}

export const policiesGetListService = () => {
  return request.get('/op/policies')
}

export const policiesGetDetailService = (id) => {
  return request.get(`/op/policies/detail/${id}`)
}